how to solve an equation